package com.fac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fac.entity.PaymentRecord;
import com.fac.vo.IncomeStatVO;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * @author toki
 */
public interface PaymentRecordMapper extends BaseMapper<PaymentRecord> {
    BigDecimal getIncomeByTypeAndDateRange(String orderType, String paymentType,
                                           LocalDate startDate, LocalDate endDate);

    List<IncomeStatVO.DailyIncome> getDailyIncome(LocalDate startDate, LocalDate endDate);

    List<IncomeStatVO.CategoryIncome> getCategoryIncome(LocalDate startDate, LocalDate endDate);
} 